import { defHttp } from '/@/utils/http/axios';
export  async function useDict (dictCode:string){
    let dictList = [];
    try {
        let data = await defHttp
        .get({
          url: `/sys/dict/getDictItems/${dictCode}`,
        })
        console.log(data)
        if(data && data.length > 0){
            dictList = data;
        }
    } catch (error) {
        
    }
       
        console.log("dictList",dictList)
    return dictList
}